//原型链继承
function Parent(){
    this.name='parent'
}
Parent.prototype.getName=function(){
    console.log(this.name)
}
function Child(){

}
Child.prototype=new Parent();
var child1=new Child();
child1.getName();